package com.wzp.Dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wzp.PO.Paging;
import com.wzp.PO.comment;
import com.wzp.PO.loginRecord;
import com.wzp.PO.user;

public interface StandardMapper {
	//登陆判断
	public int selectuser(user param) throws Exception;
	//注册用户
	public void adduser(user param)throws Exception;
	//查询用户名是否重复
	public int queryUserByname(user param)throws Exception;
	
	public user queryUserByid(user param)throws Exception;
	
	public user queryUser(user param)throws Exception;
	//分页查询评论
	public List<comment> queryComment(Paging param)throws Exception;
	//添加评论
	public void addComment(comment param)throws Exception;
	//查询总条数
	public int queryRowsByTableName(@Param("param")String param)throws Exception;
	//ip记录
	public void addloginRecord(loginRecord param)throws Exception;
	
/*	public List<DepartmentPO>   queryDepartment()throws Exception;
	public List<DepartmentType> queryDepartmentType()throws Exception;*/
}
